//5.治疗师管理
<template>
    <div>
        <div class="head-container">
            <el-form :inline="true" :model="formData" class="head-container">
    <el-form-item >
        <el-input placeholder="姓名/手机号/身份证号码" v-model="formData.nameOrPhoneOrId"></el-input>
    </el-form-item>
    <el-form-item label="服务属性">
        <el-select v-model="formData.serviceAttribute" placeholder="服务属性">
            <!-- <el-option v-for="item in options" :key="item.value" :label="item.label" :value="item.value" /> -->
        </el-select>
    </el-form-item>
    <el-form-item label="状态">
        <el-select v-model="formData.status" placeholder="状态">
            <!-- <el-option v-for="item in departmentOption" :key="item.departmentCode" :label="item.departmentName" :value="item.departmentCode" /> -->
        </el-select>
    </el-form-item>
    <el-form-item>
        <el-button type="primary" size="mini" class="left-btn" @click="inquireBtn()">查询</el-button>
    </el-form-item>
    <el-form-item>
        <el-button type="primary" size="mini" class="left-btn" @click="selectDelete()">新增</el-button>
    </el-form-item>
</el-form>
        </div>
        <el-table :data="tableData" style="width: 100%">
            <el-table-column type="index"></el-table-column>
            <el-table-column prop="name" label="姓名"></el-table-column>
            <el-table-column prop="gender" label="性别"></el-table-column>
            <el-table-column prop="phone" label="手机号"></el-table-column>
            <el-table-column prop="idNumber" label="身份证号"></el-table-column>
            <el-table-column prop="avatar" label="医生头像"></el-table-column>
            <el-table-column prop="description" label="医生简介"></el-table-column>
            <el-table-column prop="treatment" label="治疗项目"></el-table-column>
            <el-table-column prop="status" label="状态">
                <template slot-scope="scope">
                    <el-switch v-model="scope.row.status"></el-switch>
                </template>
            </el-table-column>
            <el-table-column label="操作">
                <template slot-scope="scope">
                    <el-button type="text" @click="edit(scope.row)">编辑</el-button>
                    <el-button type="text" @click="deleteRow(scope.row)">删除</el-button>
                </template>
            </el-table-column>
        </el-table>
    </div>
</template>

<script>
export default {
    data() {
        return {
            formData: {
                nameOrPhoneOrId: '',
                serviceAttribute: '',
                status: ''
            },
            serviceAttributes: [],
            status: false,
            tableData: [
                {
                    name: "张三",
                    gender: "女",
                    phone: "13656788765",
                    idNumber: "33*********09",
                    avatar: "",
                    description: "简介信息",
                    treatment: "综合运动康复训练",
                    status: false
                },
                {
                    name: "张三",
                    gender: "女",
                    phone: "13656788765",
                    idNumber: "33*********09",
                    avatar: "",
                    description: "简介信息",
                    treatment: "综合运动康复训练",
                    status: false
                },
                {
                    name: "张三",
                    gender: "女",
                    phone: "13656788765",
                    idNumber: "33*********09",
                    avatar: "",
                    description: "简介信息",
                    treatment: "综合运动康复训练",
                    status: true
                }
            ]
        };
    },
    methods: {
        query() {
            // 这里添加查询方法，调用接口获取数据
        },
        add() {
            // 这里添加新增方法，调用接口添加数据
        },
        edit(row) {
            // 这里添加编辑方法，调用接口编辑数据
        },
        deleteRow(row) {
            // 这里添加删除方法，调用接口删除数据
        }
    }
};
</script>

<style>
/* 可以在这里添加样式 */
</style>